package competition.service;

import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * Created by Administrator on 2017/8/7/007.
 */
public interface UserService {
    public Map enroll(String username,String password,String name);
    public Map login(String username,String password);
    public Map modify(String username,String newPassword);
    //2017.8.15
    public Map consumeTimes(String username);
    public Map personMessage(String username);
    public Map queryHadPublishTrade();

    //2017.8.19
    public Map uploadIcon(MultipartFile img, HttpServletRequest request,String username);

    //2017.10.1
    public Map focusTop(int user_id,int top_id,int status);
    //2017.10.2
    public Map focusTrade(int user_id,int trade_id,int status);
    public Map lookFocus(String username,int page,int num);
    //2017.10.8
    public Map userFollow(String username,String followName,int status);

    //2017.10.12
    public Map lookSelfFocus(String  username,int page,int num);

    //2017.10.17
    public Map leaveMessageUser(String username,String leaveName,String message,int is_reply);
    public Map lookMessageUser(String username);

    //2017.10.26
    public Map getNews(int page,int num);
    public Map getTop(String username);
}
